import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const LIST: AppRouteRecordRaw = {
  path: '/wms',
  name: 'wms',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.wms',
    requiresAuth: true,
    icon: 'icon-archive',
    order: 6,
  },
  children: [

    {
      path: 'wms-warehouse', // The midline path complies with SEO specifications
      name: 'Warehouse',
      component: () => import('@/views/wms/warehouse/index.vue'),
      meta: {
        locale: 'menu.wms.warehouse.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'wms-purchaseSupplier',
      name: 'PurchaseSupplier',
      component: () => import('@/views/wms/purchaseSupplier/index.vue'),
      meta: {
        locale: 'menu.wms.purchaseSupplier.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'wms-inbound',
      name: 'Inbound',
      component: () => import('@/views/wms/inbound/index.vue'),
      meta: {
        locale: 'menu.wms.inbound.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
        path: 'wms-outbound',
        name: 'Outbound',
        component: () => import('@/views/wms/outbound/index.vue'),
        meta: {
          locale: 'menu.wms.outbound.list',
          requiresAuth: true,
          roles: ['*'],
        },
      }
  ],
};

export default LIST;
